@use '../../../styles/variables' as *;

.axiom-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--axiom-chip-gap, 8px);
  padding: var(--axiom-chip-padding-y, 6px) var(--axiom-chip-padding-x, 12px);
  border-radius: var(--axiom-chip-border-radius, 18px);
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: var(--axiom-chip-font-size, 14px);
  font-weight: var(--axiom-chip-font-weight, 400);
  cursor: pointer;
  transition: all var(--axiom-transition-duration-base) ease-in-out;

  .chip-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: var(--axiom-chip-label-max-width, 150px);
  }
  
  .chip-icon {
    transition: transform var(--axiom-transition-duration-base) ease-in-out;
    font-size: var(--axiom-chip-icon-size, 12px);
    color: var(--text-color-secondary);
  }

  &:hover {
    border-color: var(--border-color-emphasis);
  }

  &.is-active {
    border-color: var(--primary-color);
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    
    .chip-icon {
      transform: rotate(180deg);
      color: var(--primary-color);
    }
  }
} 